FROM openjdk:8-jdk-alpine

RUN mkdir /data/warehouse

VOLUME /data/warehouse

WORKDIR /data/warehouse

ENV TIME=Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TIME /etc/localtime && echo $TIME > /etc/timezone

ADD ware-admin.jar /data/warehouse/ware-admin.jar

ENTRYPOINT ["java","-jar","/data/warehouse/ware-admin.jar"]
